package exercise;

import java.io.*;

/**
 * Created with IntelliJ IDEA
 * Description:
 * User:22954
 * Date:2024-03-28
 * Time:22:23
 */
@SuppressWarnings("all")
public class Exercise2 {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream("f:/Test/test1.java"),"gbk"));
        String line = null;
        int count = 1;
        while ((line = br.readLine()) != null){
            System.out.println(count++ + "\t: " + line);
        }
        br.close();
    }
}
